package com.javatech.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;
import java.util.UUID;

/**
 * the AnythingReq
 *
 * @author java-tech
 * @date 2025-03-04
 */
@Data
@NoArgsConstructor
public class AnythingReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private String message;
    private String mode;
    private String sessionId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<Object> attachments;

    public AnythingReq(String message, String mode) {
        this.message = message;
        this.mode = mode;
        this.sessionId = UUID.randomUUID().toString();
    }
}
